﻿namespace WMS6.Web.MessageServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Diagnostics;
    using System.Runtime.Serialization;

    [Serializable, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DebuggerStepThrough, DataContract(Name="MessageCommandQueryEntity", Namespace="http://schemas.datacontract.org/2004/07/WMS6.QueryEntity")]
    public class MessageCommandQueryEntity : BaseQuery
    {
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private string CreatedDateField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private string MessageContentField;
        [OptionalField]
        private string MessageFromField;
        [OptionalField]
        private string MessageIDField;
        [OptionalField]
        private string MessageIsReadField;
        [OptionalField]
        private string MessageIsSendField;
        [OptionalField]
        private string MessageTimeField;
        [OptionalField]
        private string MessageTitleField;
        [OptionalField]
        private string MessageToField;
        [OptionalField]
        private string MessageTypeField;
        [OptionalField]
        private string RowIDField;
        [OptionalField]
        private int SendTimesField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private string UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    base.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public string CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedDateField, value))
                {
                    this.CreatedDateField = value;
                    base.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    base.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public string MessageContent
        {
            get
            {
                return this.MessageContentField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MessageContentField, value))
                {
                    this.MessageContentField = value;
                    base.RaisePropertyChanged("MessageContent");
                }
            }
        }

        [DataMember]
        public string MessageFrom
        {
            get
            {
                return this.MessageFromField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MessageFromField, value))
                {
                    this.MessageFromField = value;
                    base.RaisePropertyChanged("MessageFrom");
                }
            }
        }

        [DataMember]
        public string MessageID
        {
            get
            {
                return this.MessageIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MessageIDField, value))
                {
                    this.MessageIDField = value;
                    base.RaisePropertyChanged("MessageID");
                }
            }
        }

        [DataMember]
        public string MessageIsRead
        {
            get
            {
                return this.MessageIsReadField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MessageIsReadField, value))
                {
                    this.MessageIsReadField = value;
                    base.RaisePropertyChanged("MessageIsRead");
                }
            }
        }

        [DataMember]
        public string MessageIsSend
        {
            get
            {
                return this.MessageIsSendField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MessageIsSendField, value))
                {
                    this.MessageIsSendField = value;
                    base.RaisePropertyChanged("MessageIsSend");
                }
            }
        }

        [DataMember]
        public string MessageTime
        {
            get
            {
                return this.MessageTimeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MessageTimeField, value))
                {
                    this.MessageTimeField = value;
                    base.RaisePropertyChanged("MessageTime");
                }
            }
        }

        [DataMember]
        public string MessageTitle
        {
            get
            {
                return this.MessageTitleField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MessageTitleField, value))
                {
                    this.MessageTitleField = value;
                    base.RaisePropertyChanged("MessageTitle");
                }
            }
        }

        [DataMember]
        public string MessageTo
        {
            get
            {
                return this.MessageToField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MessageToField, value))
                {
                    this.MessageToField = value;
                    base.RaisePropertyChanged("MessageTo");
                }
            }
        }

        [DataMember]
        public string MessageType
        {
            get
            {
                return this.MessageTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.MessageTypeField, value))
                {
                    this.MessageTypeField = value;
                    base.RaisePropertyChanged("MessageType");
                }
            }
        }

        [DataMember]
        public string RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RowIDField, value))
                {
                    this.RowIDField = value;
                    base.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public int SendTimes
        {
            get
            {
                return this.SendTimesField;
            }
            set
            {
                if (!this.SendTimesField.Equals(value))
                {
                    this.SendTimesField = value;
                    base.RaisePropertyChanged("SendTimes");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    base.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public string UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedDateField, value))
                {
                    this.UpdatedDateField = value;
                    base.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    base.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

